package com.maserb.monitor.repository;

import com.maserb.monitor.entity.JwRegistrationEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JwRegistrationRepository extends JpaSpecificationExecutor<JwRegistrationEntity>
        , PagingAndSortingRepository<JwRegistrationEntity, String> {

    List<JwRegistrationEntity> findByUuid(String uuid);

    List<JwRegistrationEntity> findByCreateTimeGreaterThanEqual(String time);

    List<JwRegistrationEntity> findByUuidAndRegistrationId(String uuid,String registrationId);
}